﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="IpBlockList.aspx.cs" Inherits="Manage_System_IpBlockList" %>
<html>
<head>
<!--#include file="../js/html_head.inc"-->
<link rel="stylesheet" type="text/css" href="../Themes/<%=ManageHelper.GetTheme()%>/style.css" />
</head>
<body>
<%=ManageHelper.PageSucMsg()!=""?"<div class='msg_succeed'>"+ManageHelper.PageSucMsg()+"</div>":""%>
<%=ManageHelper.PageErrMsg()!=""?"<div class='msg_failed'>"+ManageHelper.PageErrMsg()+"</div>":""%>

<div class="column">        
    <div class="columntitle"><%=BlockModule == 0 ? "后台" : "用户"%><%=BlockType == 0 ? "白名单" : "黑名单"%></div>
    <table cellspacing="0" cellpadding="0" rules="all" Align="center" border="0" id="MyDataGrid" style="border-width:0px;width:100%;border-collapse:collapse;">
        <tr class="summary-title" style="height: 25px" align="center">
            <td style="width:50px;">&nbsp;</td>
            <td>&nbsp;</td>
            <td style="width:50px;">&nbsp;</td>
        </tr>
        <%
        foreach (KeRui.Model.SysIpBlock ip in listIp)
        {
        %>
        <tr class="tdbg" onmouseover="this.className='tdbg-dark';" onmouseout="this.className='tdbg';" style="height:25px;">
		    <td align="center" style="width:50px;"><a href="javascript:;"onclick="ymPrompt.win('IpBlockItem.aspx?BlockModule=<%=BlockModule %>&BlockType=<%=BlockType %>&ID=<%=ip.ID%>&IpName=<%=ip.Name %>',450,250,'修改IP访问规则',null,null,null,true);">修改</a></td>
		    <td align="left"><%=ip.Name%></td>
			<td align="center" style="width:50px;"><a href="ipblockitem.aspx?BlockModule=<%=BlockModule %>&BlockType=<%=BlockType %>&ID=<%=ip.ID%>&act=delete" onClick="javascript:return confirm('此操作将删除IP访问规则“<%=ip.Name%>”，确认吗？');">删除</a></td>
	    </tr>
	    <%
        }
        %>
    </table>
</div>

<table width="95%" align="center">
	<tr>
		<td align="right">
			<table cellpadding="0" cellspacing="0" width="100%">
				<tr><td>
					<input type="button" value="添 加" class="button" onclick="ymPrompt.win('IpBlockItem.aspx?BlockModule=<%=BlockModule %>&BlockType=<%=BlockType %>&ID=',450,250,'增加IP访问规则',null,null,null,true);" />
				</td></tr>
			</table>
		</td>
	</tr>
</table>

</body>
</html>